02ac6ee83901e11634d35712893f5bd597a558c0,ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/views/dependencies/DependenciesView.java,DependenciesView,findLoops,#,421

Before Change


	private void findLoops() {
		fLoops = NO_LOOPS;
		if (fInput != null && fInput instanceof IPluginModel) {
			BusyIndicator.showWhile(PDEPlugin.getActiveWorkbenchShell().getDisplay(), new Runnable() {
				@Override
				public void run() {
					IPlugin plugin = ((IPluginModel) fInput).getPlugin();
					DependencyLoop[] loops = DependencyLoopFinder.findLoops(plugin);
					if (loops.length > 0) {
						fLoops = loops;
					}
				}
			});
		}
		if (fShowLoops != null)
			fShowLoops.setEnabled(fLoops != NO_LOOPS);

After Change


	private void findLoops() {
		fLoops = NO_LOOPS;
		if (fInput != null && fInput instanceof IPluginModel) {
			BusyIndicator.showWhile(PDEPlugin.getActiveWorkbenchShell().getDisplay(), () -> {
				IPlugin plugin = ((IPluginModel) fInput).getPlugin();
				DependencyLoop[] loops = DependencyLoopFinder.findLoops(plugin);
				if (loops.length > 0) {
					fLoops = loops;
				}
			});
		}
		if (fShowLoops != null)
			fShowLoops.setEnabled(fLoops != NO_LOOPS);